package domainspecific.types;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import javax.xml.bind.annotation.XmlRootElement;

import data.DataSource;

/**
 * Meter readings of a certain smart meter. The number of readings depend on the request parameter regarding date from/to, number of records and descired interval.
 * @author Markus Jung
 */

@XmlRootElement // annotation required for usage with RESTful service
public class MeterReadings implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7845606965972305990L;
	private List<Reading> readings;
	
	public MeterReadings(){		
		readings = new ArrayList<Reading>();
	}
	
	public MeterReadings(long numReadings){
		readings = new ArrayList<Reading>();
		for(long i=0;i<numReadings;i++)
		{
			readings.add(new Reading());
		}
	}

	public void setReadings(List<Reading> readings) {
		this.readings = readings;
	}

	public List<Reading> getReadings() {
		return readings;
	}
}
